package com.vcredit.creditcat.api;

import com.vcredit.creditcat.exception.AppTokenException;
import com.vcredit.creditcat.model.CustAccount;

public interface IAppTokenManager {
	void checkAppToken(String token) throws AppTokenException;

	String checkAppToken(String token, Long custId,Long accountId) throws AppTokenException;

	String getLoginNameFromToken(String token) throws AppTokenException;

	public Long getCustIdFromToken(String token) throws AppTokenException;

	public Long getAccountIdFromToken(String token) throws AppTokenException;
	
	public boolean tokenIsVaild(CustAccount custAccount,String appToken)throws Exception;
}
